package com.miniapp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.miniapp.entity.MiniVersionLogEntity;
import com.miniapp.mapper.MiniVersionLogMapper;
import com.miniapp.service.MiniVersionLogService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MiniVersionLogServiceImpl extends BaseServiceImpl<MiniVersionLogMapper,MiniVersionLogEntity> implements MiniVersionLogService {

    @Override
    public List<MiniVersionLogEntity> findByUserProductId(Long productId) {
        return baseMapper.selectList(new QueryWrapper<MiniVersionLogEntity>().eq("user_product_id",productId).orderByDesc("createTime"));
    }
}
